<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-21 17:03:58
 * @Last Modified time: 2023-02-21 17:04:49
 */
namespace app\api\controller\store;	
use think\facade\App;
use app\common\services\store\ShopService;
/**
 * Class Shop
 */
class Shop extends \app\api\controller\Base
{ 	
    /**
     * ShopService constructor.
     * @param App $app
     */
    public function __construct(App $app,ShopService $service)
    {
        parent::__construct($app);
        $this->service = $service;
    }

    /**
     * 获取门店详细
     * @force(false)
     * @method(GET)
     */
    public function detail(){
        $id = $this->request->param('id');
        $detail = $this->service->getShopDetail($id);
        $this->success($detail);
    }
}
